package com.bigworld.springbootbaseadmin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("sys_goods")
public class Goods implements Serializable, Cloneable{

    /**
     * 卡ID
     */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long goodsId;


    /**
     * 卡的外部编号
     */
    private Long customerId;


    /**
     * 名称
     */
    private String name;

    private  Integer weight;

    private BigDecimal price;

    private Date date;

    private String type;

}
